package com.yan.demo;

/**
 * @author taoge
 * @Date 2024/7/31 9:47
 * @Description
 */
public class Student<A , B> {
    private A name;
    private A id;
    private B age;

    public Student(A name, A id, B age) {
        this.name = name;
        this.id = id;
        this.age = age;
    }

    public Student() {
    }

    public A getName() {
        return name;
    }

    public void setName(A name) {
        this.name = name;
    }

    public A getId() {
        return id;
    }

    public void setId(A id) {
        this.id = id;
    }

    public B getAge() {
        return age;
    }

    public void setAge(B age) {
        this.age = age;
    }

    @Override
    public String toString() {
        return "Student{" +
                "name=" + name +
                ", id=" + id +
                ", age=" + age +
                '}';
    }
}
